<?php
/*------------------------------------------------------------------------
# jobseeker - jobseeker management 
# @author    pipapai.com
-------------------------------------------------------------------------*/

defined('_JEXEC') or die;
// disable core styles to avoid bs conflict 
OC_Util::$core_styles = array();

if(isDevMode()) {
   OCP\Util::addStyle('jobseeker', 'jobseeker');
   OCP\Util::addScript('jobseeker', 'settings');
} else {
   OCP\Util::addStyle('static', 'jobseeker');
   OCP\Util::addScript('static', 'apps/jobseeker.settings.min');
}

OCP\App::setActiveNavigationEntry('jobseeker_settings');

$savepasswordurl = OC_Helper::linkToRoute("jobseeker_setpassword");
?>

<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('jobseeker/js', 'jobseeker.php'));?>"></script>

<div class="hr_inner_navigate clearfix">
   <ul class="clearfix">
      <li class="cur_li">
        <a href="<?php echo OC_Helper::linkToRoute('jobseeker_settings'); ?>">修改密码</a>
      </li>
   </ul>
</div>

<div class="hr_company_set span9">
   <div class="passwordform">
      <div class="tips">请输入有效的密码，至少6个字符，可包含数字、字母或其他字符，不允许使用空格</div>
      <form id="settingpasswordform" action="<?php echo $savepasswordurl; ?>" method="post" name="passwordform">
      <div class="form-horizontal">

         <div class="control-group">    
            <label for="currentpassword" class="control-label key">当前密码:</label>
            <div class="controls">
               <input type="password" title="请输入您的当前密码, 当前密码是您用来登录网站的密码" data-placement="right" value="" id="currentpassword" class="inputbox required input-xlarge" name="currentpassword" autocomplete="off" maxlength="15" minlength="6" size="30">
            </div> 
         </div>
         <div class="control-group">
           <label for="newpassword" class="control-label key">新的密码:</label>
           <div class="controls">
              <input type="password" minlength="6" title="密码长度6～15位，字母区分大小写" data-placement="right" class="inputbox required input-xlarge" id="newpassword" name="newpassword" maxlength="15" size="30"><br/>
              <span style="display:none;" class="label label-warning medium">建议使用包含数字、字母、下划线组合的安全密码，否则有可能会造成信息泄漏的危险。</span>
           </div>
         </div>
         <div class="control-group">
           <label for="newpassword_verify" class="control-label key">确认新密码:</label>
           <div class="controls">
              <input type="password" minlength="6" class="inputbox input-xlarge" id="newpassword_verify" name="newpassword_verify" maxlength="15" size="30">
           </div>
         </div>
         <div class="control-group">
           <div class="controls">
              <button class="btn btn-info pull-left">保 存</button>
              <label class="pull-left" style="width:auto; padding-top:6px; margin-left:10px;">
               <span class="error server"></span>
              </label>
           </div>
         </div>
      </div> 
      <input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
      </form>                      
   </div>
</div>
